package com.zd.springcloud.config;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "consumer-gaohq-account1",path="/account")
public interface ConsumerClient {

    @PutMapping("/reduceMoney")
    public String reduceMoney(@RequestParam("money")double money,@RequestParam("accountId") long accountId);
}
